package jm.data.structure.filter;

/**
 * @Description
 * @date 2022/5/26 20:16
 */
public class Main {
    public static void main(String[] args) {
        BloomFilter<Integer> bf = new BloomFilter<>(1_00_0000,0.01);

        for (int i = 0; i < 500; i++) {
            bf.put(i);
        }

        for (int i = 0; i < 1000; i++) {
            if (!bf.contains(i)){
                System.out.println("---" + i);
            }
        }
    }
}
